package com.zhuss.core.datasource1.dao.ext;

import com.zhuss.core.datasource1.dao.gen.UnitMapper;
import com.zhuss.core.datasource1.entity.Unit;
import com.zhuss.bean.bo.core.unit.SearchUnitBo;
import com.zhuss.bean.vo.core.unit.ListUnitVo;
import com.zhuss.bean.vo.core.unit.DetailUnitVo;

import java.util.List;

import org.apache.ibatis.annotations.*;

import com.zhuss.core.db.dao.gen.*;

/**
 * @description: 小区单元数据库Dao
 * @author: zhushanshuo
 * @create: Fri May 28 23:03:24 CST 2021
 **/

@Mapper
public interface UnitDao extends UnitMapper {
	
	//void batchCreate();
	Long selectMaxIncr();
	
	void create(Unit record);
	
	void delete(Unit record);

	List<Unit> listAll();

	List<Unit> listById(@Param("unitIdList") List<Long> unitIdList);
	
	List<Unit> listByName(@Param("name") String name);
	
	List<ListUnitVo> list(SearchUnitBo bo);
	
	Integer countList(SearchUnitBo bo);

	DetailUnitVo detail(@Param("unitId") Long unitId);

}
